package com.jnu.tijian.exception;

public enum TijianAPPExceptionEnum {
    SYSTEM_ERROR(1000,"系统异常！"),
    MOBILE_NOT_REGISTER(1001, "手机号尚未注册！"),
    USERID_OR_PASSWORD_IS_WRONG(1002, "手机号或者密码错误！"),
    USERID_HAS_REGISTERED(1003,"手机号不能重复注册！"),
    ALREADY_APPOINTMENT_CURRENT_DAY(1004,"您当天已有预约！")
//    USER_LOGIN_TIMEOUT(1004,"用户登录已超时"),
//    NOT_LOGIN(1005,"请先登录");
    ;
    private Integer code;     //status
    private String message;   //desc

    TijianAPPExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    TijianAPPExceptionEnum() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
